import { useLoaderData } from 'react-router';

const Error = () => {
  // const { name } = useParams<{ name: number }>(); // 类型安全
  const { name } = useLoaderData();
  console.log(name);
  return <div>NotFound</div>;
};

export default Error;
